$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f:19.2;

.home {
  position: relative;
  width: 100%;

  .jx{
    position: absolute;
    right:0;
    top:0;
    z-index: -1;
    width: 100%;
    text-align: right;
    img{
      max-width: 100%;
    }
  }
  .title {
    width: 80vw;
    margin: 0 auto 3vw auto;
    padding-top: 10vw;
    .cn {
      color: #111;
      font-size: $fontSize_64;
      font-weight: 600;
    }

    .en {
      font-family: 'Montserrat-Regular';
      color: rgba(224, 28, 28, 1);
      font-size: $fontSize_28;
      font-weight: 600;
      margin-top: 10px;
    }
  }

  .section1 {
    width: 80vw;
    margin: 3vw auto;
    display: flex;
    justify-content: space-between;

    .l {
      display: flex;

      a {
        border: 1px solid #DDD;
        font-size: $fontSize_16;
        font-weight: 600;
        color: #111;
        padding: 0.6vw 4vw 0.6vw 1vw;
        display: flex;
        align-items: center;

        &::before {
          content: '';
          display: block;
          width: 12px;
          height: 3px;
          background: rgba(224, 28, 28, 1);
          margin-right: 8px;
          transition: all 600ms;
          opacity: 0;
          transform: translateX(-10px);
        }

        p {
          transform: translateX(-22px);
          transition: all 600ms;
        }

        &:hover {
          color: #E01C1C;

          &::before {
            opacity: 1;
            transform: translateX(0);
          }

          p {
            transform: translateX(0);
          }
        }
      }

      .active {
        color: #E01C1C;

        &::before {
          opacity: 1;
          transform: translateX(0);
        }

        p {
          transform: translateX(0);
        }
      }
    }

    .r {
      display: flex;
      align-items: center;

      a {
        color: #111;
        font-size: $fontSize_14;
      }

      span {
        width: 8px;
        height: 2px;
        background-color: rgba(224, 28, 28, 1);
        margin: 0 1vw;
      }
    }
  }

  .section2 {
    width: 80vw;
    margin: 0 auto;

    .list {
      display: flex;
      flex-wrap: wrap;
      width: 103.5%;
      margin-left: -1.5%;
      a {
        display: block;
        width: 31%;
        margin-left: 1.6%;
        margin-bottom: 3vw;
        .pic {
          overflow: hidden;
          img {
            width: 100%;
            display: block;
            object-fit: cover;
            transition: all 600ms;
          }
        }

        .tag {
          border-radius: 6px;
          border: 1px solid rgba(224, 28, 28, 0.60);
          width: fit-content;
          color: rgba(224, 28, 28, 1);
          font-size: $fontSize_18;
          font-weight: 600;
          padding: 5px 10px;
          margin: 1vw 0;
        }
        .st{
          color: #111;
          font-size: 26/$f+vw;
          font-weight: 600;
          border-bottom: 1px solid #DDD;
          padding-bottom: 10px;
          transition: all 600ms;
        }
        .des{
          color: #111;
          font-size: $fontSize_22;
          margin: 0.8vw 0;
        }
        .dt{
          display: flex;
          align-items: center;
          justify-content: space-between;
          .time{
            color: #666;
            font-size: $fontSize_22;
          }
          .btn{
            background-color: rgba(224, 28, 28, 1);
            width: fit-content;
            padding: 0.4vw 1.6vw;
            border-radius: 30px;
            svg{
              display: block;
              transition: all 600ms;
            }
          }
        }
        &:hover{
          .pic{
            img{
              transform: scale(1.05);
            }
          }
          .st{
            color:rgba(224, 28, 28, 1);
          }
          .dt{
            .btn{
              svg{
                transform: translateX(10px);
              }
            }
          }
        }
      }
    }
    .pager{
      display: flex;
      justify-content: center;
      align-items: center;
      a{
        svg{
          display: block;
        }
      }
      .nums{
        display: flex;
        align-items: center;
        margin: 0 1vw;
        a{
          padding: 0 5px;
          color:rgba(139, 139, 139, 1);
          font-size: $fontSize_22;
          margin: 0 8px;
          &:hover{
            border-bottom: 2px solid rgba(224, 28, 28, 1);
            color:rgba(224, 28, 28, 1);
            font-weight: bold;
          }
        }
        .active{
          border-bottom: 2px solid rgba(224, 28, 28, 1);
          color:rgba(224, 28, 28, 1);
          font-weight: bold;
        }
      }
    }
  }

  .section3{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 6vw;
    .item{
      width: 50%;
      position: relative;
      .bg{
        overflow: hidden;
        img{
          width: 100%;
          display: block;
          object-fit: cover;
          transition: all 600ms;
        }
      }
      .text{
        position: absolute;
        left: 10vw;
        top:50%;
        transform: translateY(-50%);
        color:white;
        .p1{
          color: #FFF;
          font-size: $fontSize_54;
          font-weight: 700;
        }
        .p2{
          color: #FFF;
          font-size: $fontSize_22;
          font-weight: 700;
        }
      }
      .btn{
        position: absolute;
        right:5%;
        bottom:5%;
        border: 2px solid white;
        width: fit-content;
        padding: 0.3vw 1.8vw;
        border-radius: 30px;
        transition: all 600ms;
        svg{
          display: block;
          transition: all 600ms;
        }
        &:hover{
          background-color: rgba(224, 28, 28, 1);
          border-color: rgba(224, 28, 28, 1);
          svg{
            transform: translateX(10px);
          }
        }
      }
      &:hover{
        .bg{
          img{
            transform: scale(1.05);
          }
        }
      }
    }
  }
  @media screen and (max-width: 1024px) {
    padding-top: 70px;
    .title{
      width: 90%;
      padding-top: 20px;
      .cn{
        font-size: 24px;
      }
      .en{
        font-size: 18px;
      }
    }
    .section1{
      width: 90%;
      margin: 30px auto;
      .l{
        a{
          font-size: 14px;
          padding: 5px 10px;
        }
      }
      .r{
        a{
          font-size: 14px;
        }
      }
    }
    .section2{
      width: 90%;
      .list{
        width: 100%;
        margin-left: 0;
        a{
          width: 100%;
          margin-left: 0;
          margin-bottom: 30px;
          .tag{
            font-size: 16px;
            margin: 10px 0;
          }
          .st{
            font-size: 18px;
          }
          .des{
            font-size: 14px;
            margin: 10px 0;
          }
          .dt{
            .time{
              font-size: 14px;
            }
            .btn{
              padding: 5px 25px;
            }
          }
        }
      }
      .pager{
        .nums{
          a{
            font-size: 16px;
          }
        }
      }
    }
    .section3{
      flex-direction: column;
      .item{
        width: 100%;
        .text{
          left: 5%;
          .p1{
            font-size: 20px;
          }
          .p2{
            font-size: 16px;
          }
        }
        .btn{
          padding: 5px 25px;
          bottom: 20px;
        }
      }
    }
  }
}